package ld.oauth.blog.mapper.user;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import ld.oauth.blog.model.po.user.SysPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author
 * @since 2022-09-03
 */
public interface SysPermissionMapper extends BaseMapper<SysPermission> {

    List<SysPermission> selectPermissionByUserId(@Param("userId") Long userId);

    List<SysPermission> findByRoleId(@Param("roleId") Long roleId);
}
